package linear.chain;

public class Main {
    public static void main(String[] args) {

        MyLinkedList list = new MyLinkedList();

        list.create();

        list.display();

        list.addFirst('J');
        list.display();

        list.addLast('P');
        list.display();


        list.addLast('Z');
        list.display();

        System.out.println(list.contains('J'));

        System.out.println(list.contains('H'));

        System.out.println(list.size());


        list.indexAdd(1,'W');
        list.display();

        list.removeKey('W');
        list.display();

        list.removeKey('J');
        list.display();

        list.removeKey('Z');
        list.display();

        list.indexAdd(4,'B');
        list.display();

        list.removeAllKey('B');
        list.display();

        list.clear();

        list.display();

    }
}
